define(function(){
	return {
		grounp:'<div class="permission-container">\
		<table id="Js-grounpTable" width="100%" class="display dataTable no-footer search-table">\
            <thead>\
                    <th>名称</th>\
                    <th>操作</th>\
            </thead>\
            <tbody>\
            </tbody>\
        </table></div>',
		grounpAdd:'<span id="Js-permission-add" class="permission-add"></span>',
		addContent:'<div class="permission-container">\
		<section class="who-content">\
			<section class="project-title">\
				添加权限组\
				<span id="Js-addBack" class="back"></span>\
			</section>\
			<section class="permission-addContent">\
			<div class="block">\
				 <span>名称：</span><input name="grounpName" value="<%item.name%>" class="form-control"/><span id="Js-permission-error" class="permission-nameError"></span>\
			</div>\
			<div class="block">\
				项目：<div class="grounp-list">\
				<%for(var i=0;i<list.length;i++){%>\
					<div data-id="<%list[i][0]%>" class="Js-item permission-item">\
						<img src="<%list[i][2]%>" title="<%list[i][1]%>">\
						<%if(list[i][6]){%>\
							<input name="read" title="只读" disabled checked type="checkbox">\
						<%} else {%>\
							<%if(item.content[i] && item.content[i][0]){%>\
								<input name="read" title="只读" type="checkbox" checked>\
							<%} else {%>\
								<input name="read" title="只读" type="checkbox">\
							<%}%>\
						<%}%>\
						<%if(item.content[i] && item.content[i][1]){%>\
							<input name="write" title="可写" type="checkbox" checked>\
						<%} else {%>\
							<input name="write" title="可写" type="checkbox">\
						<%}%>\
					</div>\
				<%}%>\
				</div>\
			</div>\
			</section>\
			<input type="submit" data-id="<%item.id%>" value="提交" class="btn btn-primary btn-lg">\
		</div>'
	}
});